// 后台管理页面用户数据表
'use strict';
const Sequelize = require("sequelize");

module.exports = (sequelize, DataTypes) => {
  var ServiceLog = sequelize.define('ServiceLog', {
    id: {
      type: DataTypes.INTEGER,
      autoIncrement: true,
      primaryKey: true
    },
    logType: DataTypes.STRING, // 日志类型
    logContent: {              // 日志内容
      type: Sequelize.STRING(1024)
    }
  }, {});
  ServiceLog.associate = function (models) {
    // associations can be defined here
  };
  ServiceLog.sync({ alter: true })
  return ServiceLog;
};